package com.starwish.starwishblog.vo;

import lombok.Data;

@Data
public class PermissionVo {


    private int id;

    private String name;

    private String url;

    private String urlType;

    private PermissionVo parent;

    public PermissionVo() {
    }

    public PermissionVo(int id, String name, String url, String urlType) {
        this.id = id;
        this.name = name;
        this.url = url;
        this.urlType = urlType;
    }

    public PermissionVo(String name, String url, String urlType) {
        this.name = name;
        this.url = url;
        this.urlType = urlType;
    }

    public PermissionVo(String name, String url, String urlType, PermissionVo parent) {
        this.name = name;
        this.url = url;
        this.urlType = urlType;
        this.parent = parent;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrlType() {
        return urlType;
    }

    public void setUrlType(String urlType) {
        this.urlType = urlType;
    }

    public PermissionVo getParent() {
        return parent;
    }

    public void setParent(PermissionVo parent) {
        this.parent = parent;
    }
}
